package com.kantboot.business.common.dao.repository;

import com.kantboot.business.common.domain.entity.BusCommonCarouselImage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface BusCommonCarouselImageRepository extends JpaRepository<BusCommonCarouselImage,Long> {

    @Query("""
            FROM BusCommonCarouselImage
            ORDER BY priority DESC
            """)
    List<BusCommonCarouselImage> getAll();
}
